<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf Demo</title>
</head>
<body>
<h1 th:text="${h1}">这是标题</h1>
<a href="#" th:href="${link}" th:text="${link}">去百度2</a>
<a href="#" th:href="@{/link}" th:text="${link}">去百度</a>
</body>
</html>